-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(otel): Export & use spanTimeInputToSeconds
for otel span exporter
#12699
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test for this? Seems really weird that this has this behaviour.
Yes, and I just realised that the PR is also incomplete, we need to detect if it's in milliseconds or seconds. In the issue it's in milliseconds. |
Can we instead just export |
Oh I wasn't aware of that! Updating the PR. |
d73b071
to
ae4a0f2
Compare
size-limit report 📦
|
ae4a0f2
to
9da19ec
Compare
spanTimeInputToSeconds
for otel span exporter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! I adjusted the PR name to match what it now does :) Still weird why this is happening, as the types are pretty clear in what should happen, but does not hurt to be extra safe here...
Adds support for cases where the time from OTEL is just a number in milliseconds instead of tuples.
Fixes: #12697 (Can't reproduce the issue but from the context of the report, this should resolve it)